package com.txhy.certificatechain.model.bean;

import java.util.List;

/*
 * -----------------------------------------------------------------
 * Copyright (C) 2018-2030, by your company, All rights reserved.
 * -----------------------------------------------------------------
 * 文    件: NewsBean.java
 * 作    者: 侯建军
 * 版    权: 1.0.0
 * 描    述: 新闻实体类
 * 创建时间: 2018/9/20 8:32
 * 更新时间：2018/9/20 8:32
 * -----------------------------------------------------------------
 * 2018/9/20 8:32: 创建 NewsBean.java (侯建军);
 * -----------------------------------------------------------------
 */
public class NewsBean {
    /**
     * status : 200
     * msg : 成功
     * data : [{"id":2,"title":"中非命运共同曲在北京奏响","logoUrl":"/group1/M00/00/12/wKgBm1uN9oyATntmAAA-UA20zMo803.jpg","detail":"中非团结一心、同舟共济","url":"news.youth.cn/sz/201809/t20180903_11716602.htm"},{"id":3,"title":"爱心图书室","logoUrl":"/group1/M00/00/12/wKgBm1uN9oyATntmAAA-UA20zMo803.jpg","detail":"关爱留守儿童","url":"news.sina.com.cn/o/2018-09-05/doc-ihiqtcap4004488.shtml"},{"id":1,"title":"中非合作论坛北京峰会举行圆桌会议 ","logoUrl":"/group1/M00/00/12/wKgBm1uN9oyATntmAAA-UA20zMo803.jpg","detail":"央视网消息（新闻联播）","url":"news.cctv.com/2018/09/04/ARTIH8u3AwZc5TESIzJwQxdK180904.shtml"}]
     */
    private int status;
    private String msg;
    /**
     * id : 2
     * title : 中非命运共同曲在北京奏响
     * logoUrl : /group1/M00/00/12/wKgBm1uN9oyATntmAAA-UA20zMo803.jpg
     * detail : 中非团结一心、同舟共济
     * url : news.youth.cn/sz/201809/t20180903_11716602.htm
     */
    private List<DataEntity> data;

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(List<DataEntity> data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public List<DataEntity> getData() {
        return data;
    }

    public static class DataEntity {
        private int id;
        private String title;
        private String logoUrl;
        private String detail;
        private String url;
        public void setId(int id) {
            this.id = id;
        }
        public void setTitle(String title) {
            this.title = title;
        }
        public void setLogoUrl(String logoUrl) {
            this.logoUrl = logoUrl;
        }
        public void setDetail(String detail) {
            this.detail = detail;
        }
        public void setUrl(String url) {
            this.url = url;
        }
        public int getId() {
            return id;
        }
        public String getTitle() {
            return title;
        }
        public String getLogoUrl() {
            return logoUrl;
        }
        public String getDetail() {
            return detail;
        }
        public String getUrl() {
            return url;
        }
    }
}
